import 'package:flutter/material.dart';

class Name extends StatefulWidget {
  const Name({Key? key}) : super(key: key);

  @override
  State<Name> createState() => _NameState();
}

class _NameState extends State<Name> {
  TextEditingController _usernameController = TextEditingController();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('修改昵称',style: TextStyle(fontSize: 12),),
          leading: IconButton(onPressed: () {
            //页面返回
            Navigator.pop(context);
          },
            icon: Icon(Icons.keyboard_arrow_left_rounded),

          ),
        actions: [
          InkWell(
            onTap: (){
              //
            },
            child: Container(
            margin: EdgeInsets.only(
              top: 25,
              right: 25,
              left: 25,
            ),
            child: Text('保存',style: TextStyle(fontSize: 12),),
          ),)

        ],
      ),
      body: Container(
        margin: EdgeInsets.only(
          right: 18,
          left: 18,
        ),
        child: Column(
          children: [
            //昵称
            TextField(
              keyboardType: TextInputType.text,
              controller: _usernameController,
              style: TextStyle(fontSize: 11),
              decoration: InputDecoration(
                hintText: '输入昵称',
                fillColor: Colors.black12,
              ),

            )
          ],
        ),
      ),
    );
  }
}
